package com.zzw.module.controller;

import com.zzw.module.domain.Account;
import com.zzw.module.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/account")
public class AccountController {
    @Autowired
    private IAccountService iAccountService;

    @GetMapping("/query")
    public String selectAccountList() {
        List<Account> list = iAccountService.selectAccountList(new Account() {{
            setName("aaa");
        }});
        return list.toString();
    }
}
